package oracle.apps.financials.collection.listener;

import oracle.apps.financials.collection.po.Customer;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.view.View;

public class CallActionListener extends BaseOnClickListener {

	public CallActionListener(Context context,Customer customer) {
		super(context, customer);
	}

	@Override
	public void onClick(View v) {
		try {
			String num = customer.getPhone();
			Intent myIntentDial = new Intent("android.intent.action.CALL", Uri.parse("tel:" + num));
			this.context.startActivity(myIntentDial);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
